<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib uri="http://workflowReviewTag.weitu.net" prefix="flow" %><!--工作流审批处理标签-->
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title></title>
    <%@include file="/common/header.jspf"%>
    <script type="text/javascript" src="${ctx}/resources/js/majorHazard/technicalReport/details.js"></script>
</head>
<style>
    body{
        height: auto;
    }
    .flow_review{

        width:100%;
        margin-bottom:20px;
    }
    .flow_review .review_title{
        width:100px;
        text-align: right;
    }
    .flow_review>table{
        width:100%;
    }
    .flow_review label{
        float:left;
        width:50px;
    }
    .flow_review label>input{
        width:10px;
    }
    .flow_review textarea{
        width:80%;
    }
    .flow_review .review_next_check{
        width:100%;
    }
    /*.flow_review .review_result{
        padding-left:20%;
        height:30px;
        line-height:30px;
    }
    .flow_review .review_result>label{
        width:50px;
        float:left;
    }
    .flow_review .review_result>label>input{
        width:10px;
    }
    .flow_review  .review_comments{
        height:auto;
    }
    .flow_review  .review_comments>textarea{
        margin-left:10%;
        width:80%;
    }*/
</style>
<body>
<c:if test="${formType!=null}">
    <div class="menu-right" style="width:80px;">
        <a id="btn_verify" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    </div>
</c:if>
<div class="information">
    <form id="submit_form" method="post">
        <div class="information">
            <div class="information-title">
                <p>基本信息</p>
                <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
            </div>
            <div class="cuttle" style="height: 120px;">
                <div style="clear: both">
                    <div class="form_one" style="width: 1100px;">
                        <label class="lable-style">技术报告名称:</label>
                        <input id="technicalReport" class="easyui-textbox" data-options="disabled:true" name="technicalReport" value="${technicalReport.technicalReport}" style="width: 965px">
                        <span>*</span>
                    </div>
                </div>
                <div style="clear: both">
                    <div class="form_one" style="width:550px">
                        <label class="lable-style">年度:</label>
                        <select class="easyui-combobox" id="year" name="year" style="width: 415px" data-options="required:true,editable:false,selectOnNavigation:true" disabled>
                            <option></option>
                            <c:forEach var="i" begin="2000" end="2050" varStatus="status">
                                <option value="${i}" <c:if test="${i==technicalReport.year}">selected</c:if>>${i}</option>
                            </c:forEach>
                        </select>
                    </div>
                    <div class="form_one" style="width: 550px">
                        <label class="lable-style">类型:</label>
                        <select class="easyui-combobox" id="type" name="type" style="width: 415px" data-options="required:true,editable:false,selectOnNavigation:true" disabled>
                            <option></option>
                            <option value="上半年" <c:if test="${'上半年'==technicalReport.type}">selected</c:if>>上半年</option>
                            <option value="下半年" <c:if test="${'下半年'==technicalReport.type}">selected</c:if>>下半年</option>
                        </select>
                    </div>
                </div>
                <div style="clear: both">
                    <div class="form_one" style="width: 1100px;">
                        <label class="lable-style">关键装置/要害部位:</label>
                        <input id="criticalParts" class="easyui-textbox" name="criticalParts" value="${technicalReport.criticalParts}" style="width: 965px"  data-options="disabled:true">
                        <span>*</span>
                    </div>
                </div>
                <div style="clear: both;height:57px;">
                    <div class="form_one fotm-textarea" style="width: 1100px">
                        <label class="lable-style">报告描述:</label>
                        <input class="easyui-textbox" data-options="multiline:true,disabled:true" style="height: 50px;width: 965px;" name="reportDescription" value="${technicalReport.reportDescription}"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="information">
            <div class="information-title">
                <p>附件</p>
                <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
            </div>
            <accessory:accessorySimple permission="readOnly"  packageKey="tcrp" uploadUserId="${uploadUserId}" packageInfos="${accessoryList}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
        </div>
        <div class="information" style="height: 200px;">
            <div class="information-title">
                <p>登记人</p>
                <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
            </div>
            <div class="cuttle" style="height: 220px;">
                <div style="clear: both">
                    <div class="form_one">
                        <label class="lable-style">登记人:</label>
                        <input name="addUserId" value="${technicalReport.addUserId}" hidden/>
                        <input class="easyui-textbox" style="width: 240px;" value="${technicalReport.addUserName}"  data-options="disabled:true">
                        <span>*</span>
                    </div>
                    <div class="form_one">
                        <label class="lable-style">登记部门:</label>
                        <input name = "addDeptId" value="${technicalReport.addDeptId}" hidden/>
                        <input  value="${technicalReport.addDeptName}" class="easyui-textbox"  data-options="disabled:true" style="width: 240px;">
                        <span>*</span>
                    </div>
                    <div class="form_one">
                        <label class="lable-style">登记时间:</label>
                        <input name = "addTime" value="${technicalReport.addTime}" class="easyui-textbox"  data-options="disabled:true" style="width: 240px;">
                        <span>*</span>
                    </div>
                </div>
            </div>
        </div>

        <c:if test="${formType!=null}">
            <input type="hidden" name="workItemId" value="${workItemId}">
            <input type="hidden" name="id" value="${technicalReport.id}" />
            <div class="information">
                <div class="information-title">
                    <p>审批信息</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>
                <div class="input-wrap">
                    <!--工作流审批意见-->
                    <flow:review requestName="workflowReview" workItemId="${workItemId}"/>
                </div>
            </div>
        </c:if>
    </form>

</div>

</body>
</html>
